package com.liusu.spider.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class User {

    public Integer id;
    public String name;
    public String site;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date register;


    public String address;

    public String password;


    public LocalDateTime birth;

    public User(Integer id, String name, String site, Date register, LocalDateTime birth,String address, String password) {
        this.id = id;
        this.name = name;
        this.site = site;
        this.register = register;
        this.birth = birth;
        this.address = address;
        this.password = password;
    }
}
